
#ifndef  LIGHTSSYSTEM_H
#define  LIGHTSSYSTEM_H

class State;
class LightsSystem {
public:

    LightsSystem();
    ~LightsSystem();

    void changeState(State * state);

    void start();
    void stop();
    /*
    void pause(){
        //_timer->stop();
    }
    void resume(){
        //_timer->start();
    }*/
    void onTimeout();

    static State * redState;
    static State * yellowState;
    static State * greenState;
private:

    State * _currentState;
};

#endif   /* LIGHTSSYSTEM_H */
